projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23609c7
)
x86: video: Add debug option to time the BIOS copy
author
Simon Glass
<
[email protected]
>
Thu, 1 Jan 2015 23:18:01 +0000
(16:18 -0700)
committer
Simon Glass
<
[email protected]
>
Tue, 13 Jan 2015 15:24:59 +0000
(07:24 -0800)
This can be very slow - typically 80ms even on a fast machine since it uses
the SPI flash to read the data. Add an option to display the time taken.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
drivers/pci/pci_rom.c
patch
|
blob
|
history
diff --git
a/drivers/pci/pci_rom.c
b/drivers/pci/pci_rom.c
index 9808bb385e85d6f9d1bf9474b5d755d18d8d89a4..5ba315b2ad489aae209f37bcc34102ee543bafba 100644
(file)
--- a/
drivers/pci/pci_rom.c
+++ b/
drivers/pci/pci_rom.c
@@
-156,6
+156,8
@@
int pci_rom_load(uint16_t class, struct pci_rom_header *rom_header,
target = (void *)PCI_VGA_RAM_IMAGE_START;
if (target != rom_header) {
+ ulong start = get_timer(0);
+
debug("Copying VGA ROM Image from %p to %p, 0x%x bytes\n",
rom_header, target, rom_size);
memcpy(target, rom_header, rom_size);
@@
-163,6
+165,7
@@
int pci_rom_load(uint16_t class, struct pci_rom_header *rom_header,
printf("VGA ROM copy failed\n");
return -EFAULT;
}
+ debug("Copy took %lums\n", get_timer(start));
}
*ram_headerp = target;